<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: Vector类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_vector-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">Vector类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>二维向量  
 <a href="class_vector.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_vector_8h_source.html">Vector.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af2e3d4f87c733b7d99f87f2f4fa5957f"><td class="memItemLeft" align="right" valign="top"><a id="af2e3d4f87c733b7d99f87f2f4fa5957f" name="af2e3d4f87c733b7d99f87f2f4fa5957f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Vector</b> (double d, double d1)</td></tr>
<tr class="separator:af2e3d4f87c733b7d99f87f2f4fa5957f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac63da18552b0d2014aea49340e47935b"><td class="memItemLeft" align="right" valign="top"><a id="ac63da18552b0d2014aea49340e47935b" name="ac63da18552b0d2014aea49340e47935b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Vector</b> (double angle)</td></tr>
<tr class="separator:ac63da18552b0d2014aea49340e47935b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a551bf77c159f8a1de5daa610f0e60ddf"><td class="memItemLeft" align="right" valign="top"><a id="a551bf77c159f8a1de5daa610f0e60ddf" name="a551bf77c159f8a1de5daa610f0e60ddf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Vector</b> (const <a class="el" href="class_point.html">Point</a> &amp;p1, const <a class="el" href="class_point.html">Point</a> &amp;p2)</td></tr>
<tr class="separator:a551bf77c159f8a1de5daa610f0e60ddf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91195ca3eeb67294cd111a11a62baf66"><td class="memItemLeft" align="right" valign="top"><a id="a91195ca3eeb67294cd111a11a62baf66" name="a91195ca3eeb67294cd111a11a62baf66"></a>
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> (double times) const</td></tr>
<tr class="separator:a91195ca3eeb67294cd111a11a62baf66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8dc17cac0da5ffbc2ed965ecde6e04bf"><td class="memItemLeft" align="right" valign="top"><a id="a8dc17cac0da5ffbc2ed965ecde6e04bf" name="a8dc17cac0da5ffbc2ed965ecde6e04bf"></a>
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator*=</b> (double times) const</td></tr>
<tr class="separator:a8dc17cac0da5ffbc2ed965ecde6e04bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab67652bffa77db98adcbf48da0e5abab"><td class="memItemLeft" align="right" valign="top"><a id="ab67652bffa77db98adcbf48da0e5abab" name="ab67652bffa77db98adcbf48da0e5abab"></a>
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator+</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;other) const</td></tr>
<tr class="separator:ab67652bffa77db98adcbf48da0e5abab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbcb1ffd04d881d2d9d693193787e556"><td class="memItemLeft" align="right" valign="top"><a id="acbcb1ffd04d881d2d9d693193787e556" name="acbcb1ffd04d881d2d9d693193787e556"></a>
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator+=</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;other)</td></tr>
<tr class="separator:acbcb1ffd04d881d2d9d693193787e556"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41a06f3dec0af5b0bbf5a85e5feabb67"><td class="memItemLeft" align="right" valign="top"><a id="a41a06f3dec0af5b0bbf5a85e5feabb67" name="a41a06f3dec0af5b0bbf5a85e5feabb67"></a>
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator-</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;other) const</td></tr>
<tr class="separator:a41a06f3dec0af5b0bbf5a85e5feabb67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b5f826d645256ea206622da31190307"><td class="memItemLeft" align="right" valign="top"><a id="a1b5f826d645256ea206622da31190307" name="a1b5f826d645256ea206622da31190307"></a>
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator-=</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;other)</td></tr>
<tr class="separator:a1b5f826d645256ea206622da31190307"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9745725dc8c61eb31ee8e6a44004043"><td class="memItemLeft" align="right" valign="top"><a id="ae9745725dc8c61eb31ee8e6a44004043" name="ae9745725dc8c61eb31ee8e6a44004043"></a>
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator/</b> (double times) const</td></tr>
<tr class="separator:ae9745725dc8c61eb31ee8e6a44004043"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fb3a29f7d960151585588066477ad3f"><td class="memItemLeft" align="right" valign="top"><a id="a6fb3a29f7d960151585588066477ad3f" name="a6fb3a29f7d960151585588066477ad3f"></a>
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator/=</b> (double times)</td></tr>
<tr class="separator:a6fb3a29f7d960151585588066477ad3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5435d0dbad5336fe4df23e6ab081612"><td class="memItemLeft" align="right" valign="top"><a id="ad5435d0dbad5336fe4df23e6ab081612" name="ad5435d0dbad5336fe4df23e6ab081612"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;other) const</td></tr>
<tr class="separator:ad5435d0dbad5336fe4df23e6ab081612"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e5e4749640f1d3bb8eedd31fb94c59e"><td class="memItemLeft" align="right" valign="top"><a id="a3e5e4749640f1d3bb8eedd31fb94c59e" name="a3e5e4749640f1d3bb8eedd31fb94c59e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;other) const</td></tr>
<tr class="separator:a3e5e4749640f1d3bb8eedd31fb94c59e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a240b571ae1f1d4f7a48d4982872bd46a"><td class="memItemLeft" align="right" valign="top"><a id="a240b571ae1f1d4f7a48d4982872bd46a" name="a240b571ae1f1d4f7a48d4982872bd46a"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>len</b> () const</td></tr>
<tr class="separator:a240b571ae1f1d4f7a48d4982872bd46a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a339165be3900e10ed558402d68a1b750"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#a339165be3900e10ed558402d68a1b750">normalize</a> () const</td></tr>
<tr class="memdesc:a339165be3900e10ed558402d68a1b750"><td class="mdescLeft">&#160;</td><td class="mdescRight">归一化向量 WARN 返回新的向量  <a href="class_vector.html#a339165be3900e10ed558402d68a1b750">更多...</a><br /></td></tr>
<tr class="separator:a339165be3900e10ed558402d68a1b750"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b1fc018b51785345ddcbc0ac73758a7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#a7b1fc018b51785345ddcbc0ac73758a7">getVertical</a> () const</td></tr>
<tr class="memdesc:a7b1fc018b51785345ddcbc0ac73758a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取与自己垂直的向量  <a href="class_vector.html#a7b1fc018b51785345ddcbc0ac73758a7">更多...</a><br /></td></tr>
<tr class="separator:a7b1fc018b51785345ddcbc0ac73758a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8226fda013671ae804712d085cc0a12c"><td class="memItemLeft" align="right" valign="top"><a id="a8226fda013671ae804712d085cc0a12c" name="a8226fda013671ae804712d085cc0a12c"></a>
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator-</b> () const</td></tr>
<tr class="separator:a8226fda013671ae804712d085cc0a12c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59780f0da1181c5e239b671b1f2d9504"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#a59780f0da1181c5e239b671b1f2d9504">dot</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;other) const</td></tr>
<tr class="memdesc:a59780f0da1181c5e239b671b1f2d9504"><td class="mdescLeft">&#160;</td><td class="mdescRight">点乘  <a href="class_vector.html#a59780f0da1181c5e239b671b1f2d9504">更多...</a><br /></td></tr>
<tr class="separator:a59780f0da1181c5e239b671b1f2d9504"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ed05dea33d1d6eca5bcc85b65fcb36e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#a6ed05dea33d1d6eca5bcc85b65fcb36e">project</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;other) const</td></tr>
<tr class="memdesc:a6ed05dea33d1d6eca5bcc85b65fcb36e"><td class="mdescLeft">&#160;</td><td class="mdescRight">投影  <a href="class_vector.html#a6ed05dea33d1d6eca5bcc85b65fcb36e">更多...</a><br /></td></tr>
<tr class="separator:a6ed05dea33d1d6eca5bcc85b65fcb36e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2720d55962c4b9faebae83ba5b54b8b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#ac2720d55962c4b9faebae83ba5b54b8b">projectV</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;other) const</td></tr>
<tr class="memdesc:ac2720d55962c4b9faebae83ba5b54b8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">投影向量， WARN 方向与投影方向一致  <a href="class_vector.html#ac2720d55962c4b9faebae83ba5b54b8b">更多...</a><br /></td></tr>
<tr class="separator:ac2720d55962c4b9faebae83ba5b54b8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24f51666833c11c85a1b5b64353d4163"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#a24f51666833c11c85a1b5b64353d4163">getSign</a> () const</td></tr>
<tr class="memdesc:a24f51666833c11c85a1b5b64353d4163"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取每个方向的符号  <a href="class_vector.html#a24f51666833c11c85a1b5b64353d4163">更多...</a><br /></td></tr>
<tr class="separator:a24f51666833c11c85a1b5b64353d4163"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a133722e00601091cb2075219da5da6e4"><td class="memItemLeft" align="right" valign="top"><a id="a133722e00601091cb2075219da5da6e4" name="a133722e00601091cb2075219da5da6e4"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>x</b></td></tr>
<tr class="separator:a133722e00601091cb2075219da5da6e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09a21a140718f234eea348d5058cee0b"><td class="memItemLeft" align="right" valign="top"><a id="a09a21a140718f234eea348d5058cee0b" name="a09a21a140718f234eea348d5058cee0b"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>y</b></td></tr>
<tr class="separator:a09a21a140718f234eea348d5058cee0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a0e8e7fc0887deea57cafda26bcb4c834"><td class="memItemLeft" align="right" valign="top"><a id="a0e8e7fc0887deea57cafda26bcb4c834" name="a0e8e7fc0887deea57cafda26bcb4c834"></a>
std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;out, const <a class="el" href="class_vector.html">Vector</a> &amp;v)</td></tr>
<tr class="separator:a0e8e7fc0887deea57cafda26bcb4c834"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >二维向量 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a59780f0da1181c5e239b671b1f2d9504" name="a59780f0da1181c5e239b671b1f2d9504"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59780f0da1181c5e239b671b1f2d9504">&#9670;&nbsp;</a></span>dot()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vector::dot </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>点乘 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_vector_a59780f0da1181c5e239b671b1f2d9504_icgraph.png" border="0" usemap="#aclass_vector_a59780f0da1181c5e239b671b1f2d9504_icgraph" alt=""/></div>
<map name="aclass_vector_a59780f0da1181c5e239b671b1f2d9504_icgraph" id="aclass_vector_a59780f0da1181c5e239b671b1f2d9504_icgraph">
<area shape="rect" title="点乘" alt="" coords="324,5,411,32"/>
<area shape="rect" href="class_vector.html#a6ed05dea33d1d6eca5bcc85b65fcb36e" title="投影" alt="" coords="169,5,276,32"/>
<area shape="rect" href="class_vector.html#ac2720d55962c4b9faebae83ba5b54b8b" title="投影向量， WARN 方向与投影方向一致" alt="" coords="5,5,121,32"/>
</map>
</div>

</div>
</div>
<a id="a24f51666833c11c85a1b5b64353d4163" name="a24f51666833c11c85a1b5b64353d4163"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24f51666833c11c85a1b5b64353d4163">&#9670;&nbsp;</a></span>getSign()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector.html">Vector</a> Vector::getSign </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取每个方向的符号 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_vector_a24f51666833c11c85a1b5b64353d4163_cgraph.png" border="0" usemap="#aclass_vector_a24f51666833c11c85a1b5b64353d4163_cgraph" alt=""/></div>
<map name="aclass_vector_a24f51666833c11c85a1b5b64353d4163_cgraph" id="aclass_vector_a24f51666833c11c85a1b5b64353d4163_cgraph">
<area shape="rect" title="获取每个方向的符号" alt="" coords="5,5,117,32"/>
<area shape="rect" href="class_common.html#a02d57e46d1b5ed62de5fe5e0afdc020a" title="获取变量符号" alt="" coords="165,5,272,32"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_vector_a24f51666833c11c85a1b5b64353d4163_icgraph.png" border="0" usemap="#aclass_vector_a24f51666833c11c85a1b5b64353d4163_icgraph" alt=""/></div>
<map name="aclass_vector_a24f51666833c11c85a1b5b64353d4163_icgraph" id="aclass_vector_a24f51666833c11c85a1b5b64353d4163_icgraph">
<area shape="rect" title="获取每个方向的符号" alt="" coords="181,5,293,32"/>
<area shape="rect" href="class_base_object.html#ac243a7f83f8a6ac699ba521e9cc136b5" title="移动函数，承载角色的逻辑由场景执行" alt="" coords="5,5,133,32"/>
</map>
</div>

</div>
</div>
<a id="a7b1fc018b51785345ddcbc0ac73758a7" name="a7b1fc018b51785345ddcbc0ac73758a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b1fc018b51785345ddcbc0ac73758a7">&#9670;&nbsp;</a></span>getVertical()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector.html">Vector</a> Vector::getVertical </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取与自己垂直的向量 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a339165be3900e10ed558402d68a1b750" name="a339165be3900e10ed558402d68a1b750"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a339165be3900e10ed558402d68a1b750">&#9670;&nbsp;</a></span>normalize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector.html">Vector</a> Vector::normalize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>归一化向量 WARN 返回新的向量 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_vector_a339165be3900e10ed558402d68a1b750_icgraph.png" border="0" usemap="#aclass_vector_a339165be3900e10ed558402d68a1b750_icgraph" alt=""/></div>
<map name="aclass_vector_a339165be3900e10ed558402d68a1b750_icgraph" id="aclass_vector_a339165be3900e10ed558402d68a1b750_icgraph">
<area shape="rect" title="归一化向量 WARN 返回新的向量" alt="" coords="181,31,305,57"/>
<area shape="rect" href="class_base_object.html#ac243a7f83f8a6ac699ba521e9cc136b5" title="移动函数，承载角色的逻辑由场景执行" alt="" coords="5,5,133,32"/>
<area shape="rect" href="class_vector.html#ac2720d55962c4b9faebae83ba5b54b8b" title="投影向量， WARN 方向与投影方向一致" alt="" coords="11,56,127,83"/>
</map>
</div>

</div>
</div>
<a id="a6ed05dea33d1d6eca5bcc85b65fcb36e" name="a6ed05dea33d1d6eca5bcc85b65fcb36e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ed05dea33d1d6eca5bcc85b65fcb36e">&#9670;&nbsp;</a></span>project()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vector::project </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>投影 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_vector_a6ed05dea33d1d6eca5bcc85b65fcb36e_cgraph.png" border="0" usemap="#aclass_vector_a6ed05dea33d1d6eca5bcc85b65fcb36e_cgraph" alt=""/></div>
<map name="aclass_vector_a6ed05dea33d1d6eca5bcc85b65fcb36e_cgraph" id="aclass_vector_a6ed05dea33d1d6eca5bcc85b65fcb36e_cgraph">
<area shape="rect" title="投影" alt="" coords="5,5,112,32"/>
<area shape="rect" href="class_vector.html#a59780f0da1181c5e239b671b1f2d9504" title="点乘" alt="" coords="160,5,247,32"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_vector_a6ed05dea33d1d6eca5bcc85b65fcb36e_icgraph.png" border="0" usemap="#aclass_vector_a6ed05dea33d1d6eca5bcc85b65fcb36e_icgraph" alt=""/></div>
<map name="aclass_vector_a6ed05dea33d1d6eca5bcc85b65fcb36e_icgraph" id="aclass_vector_a6ed05dea33d1d6eca5bcc85b65fcb36e_icgraph">
<area shape="rect" title="投影" alt="" coords="169,5,276,32"/>
<area shape="rect" href="class_vector.html#ac2720d55962c4b9faebae83ba5b54b8b" title="投影向量， WARN 方向与投影方向一致" alt="" coords="5,5,121,32"/>
</map>
</div>

</div>
</div>
<a id="ac2720d55962c4b9faebae83ba5b54b8b" name="ac2720d55962c4b9faebae83ba5b54b8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2720d55962c4b9faebae83ba5b54b8b">&#9670;&nbsp;</a></span>projectV()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector.html">Vector</a> Vector::projectV </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>投影向量， WARN 方向与投影方向一致 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_vector_ac2720d55962c4b9faebae83ba5b54b8b_cgraph.png" border="0" usemap="#aclass_vector_ac2720d55962c4b9faebae83ba5b54b8b_cgraph" alt=""/></div>
<map name="aclass_vector_ac2720d55962c4b9faebae83ba5b54b8b_cgraph" id="aclass_vector_ac2720d55962c4b9faebae83ba5b54b8b_cgraph">
<area shape="rect" title="投影向量， WARN 方向与投影方向一致" alt="" coords="5,31,121,57"/>
<area shape="rect" href="class_vector.html#a339165be3900e10ed558402d68a1b750" title="归一化向量 WARN 返回新的向量" alt="" coords="169,5,293,32"/>
<area shape="rect" href="class_vector.html#a6ed05dea33d1d6eca5bcc85b65fcb36e" title="投影" alt="" coords="178,56,285,83"/>
<area shape="rect" href="class_vector.html#a59780f0da1181c5e239b671b1f2d9504" title="点乘" alt="" coords="341,56,428,83"/>
</map>
</div>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Utils/Math/<a class="el" href="_vector_8h_source.html">Vector.h</a></li>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Utils/Math/Vector.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
